using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AudioSourceControl : MonoBehaviour
{
    private AudioSource audioSource;
    private void Awake()
    {
        audioSource = transform.GetComponent<AudioSource>();
    }

    private void OnEnable()
    {
        int needMute = PlayerPrefs.GetInt("bgmIsMute");
   
        audioSource.enabled = (needMute != 1);
         
    }
}
